<div class="o_c_title">
	我的商户
</div>
<table class="tlist" style="margin-top:20px;" id="listTab">
	<tr>
		<th colspan="3">商户名称</th>
		<th width="150px">当前剩余可用积分</th>
		<th width="120px">卡片状态</th>
	</tr>
	{foreach from=$data item=v}
	<tr>
		<td width="60px"><input type="checkbox" name="checkboxes[]" class='idsClass' value="{$v.shop_id}" /></td>
		<td align="left" style="text-align:left; height:70px;" width="110px"><img style="width:98px; height:65px;" src="{$v.pic_path}" /></td>
		<td align="left" style="text-align:left;">
		<span class="color_b font_w_b">{$v.shop_name}</span>
		<p style="width:400px;">{$v.remark}</p>
		</td>
		<td class="color_green"><span class="tlist_span">{$v.balance}</span></td>
		<td><span class="tlist_span">{if $v.owner_card_status eq 1}正常{else}关闭{/if}</span>
			<a href="###" onclick="showBefore({$v.shop_id},{$v.owner_card_status});showWin('changeCardStatus','changeCardStatusOp');" class="g_a">
		     	<span class="g_b">
		        	<span class="g_c">&nbsp;</span>
			    	<span class="g_d">{if $v.owner_card_status eq 1}关闭{else}开启{/if}</span>
			    </span>
			</a>
		</td>
	</tr>
	{/foreach}
	<tr>
		<td><input onclick="checkBoxSelectAll(this);" name="chkall" id="chkall" type="checkbox" /><label for="chkall">全选</label></td>
		<td colspan="4" align="right" style="text-align:right;">
			<a href="###" onclick="betchChangeCardStatus(2)" class="g_a">
		     	<span class="g_b">
		        	<span class="g_c">&nbsp;</span>
			    	<span class="g_d">关闭增加/扣减积分功能</span>
			    </span>
			</a>
&nbsp;
			
			<a href="###" onclick="betchChangeCardStatus(1)" class="g_a">
		     	<span class="g_b">
		        	<span class="g_c">&nbsp;</span>
			    	<span class="g_d">开启增加/扣减积分功能</span>
			    </span>
			</a>
		</td>
	</tr>
	{if $pageStr neq ""}
	<tr><td colspan="5">{$pageStr}</td></tr>
	{/if}
</table>
<input type="hidden" value="" name="id" id="hidShopID" />
<input type="hidden" value="" name="id" id="hidCardStatus" />